package com.ribbonConfig;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：liukai
 * @date ：Created in 2021/9/9 1:54 下午
 * @description：
 * @modified By：
 * @version: $
 */
@Configuration
public class RibbonConfig {

    @Bean
    public IRule rule() {
        return new RandomRule();
    }

}
